<?php
error_reporting(E_ALL);

include('./libs/template.php');






$list = array();
$columns = array(
	array(
		"title"=>'Name',
		"key"=>'name'
	),
	array(
		"title"=>'Age',
		"key"=>'age'
	),
	array(
		"title"=>'Address',
		"key"=>'address'
	),
);
for($i=0;$i<5;$i++){
	$list[] = array('name'=>'张飞'.$i,'age'=>11+$i,"address"=>'aaaaaaaa');
}

$tpl = 'register';



$arr = array('data'=>$list,'columns'=>$columns,'router_name'=>$tpl);
$tpl = new Wtemplate();
$tpl->display('index.wu',$arr);

?>



